{include file=$Config.ModulesFolder|cat:$Config.BlocksFolder|cat:"block.block_title.tpl" title=$lang.user.authentication}
{if !$User.info.id}
<center>
<form method="post" action="{validate_url url=$SITEPATH url1='login' url8=$Config.webPageFileType}" id="loginboxfrm">
<input type="hidden" name="task" value="existuser">
<table class="loginform">
<tr>
  <td class="name">{$lang.user.email}: </td>
  <td class="value"><input type="text" name="login" value="{$smarty.post.login}" /></td>
</tr>
<tr>
  <td class="name">{$lang.user.password}: </td>
  <td class="value"><input type="password" name="pass" value="" /></td>
</tr>
</table>
</form>
</center>
<center><div class="button"><a onclick="$(loginboxfrm).submit();">{$lang.user.login}</a></div></center>
<div>
<div class="buttonv"><a href="{validate_url url=$SITEPATH url1='registration' url8=$Config.webPageFileType}">{$lang.user.registerHere}</a></div>
<div class="buttonv"><a href="{validate_url url=$SITEPATH url1='forgot' url8=$Config.webPageFileType}">{$lang.user.forgotPassword}</a></div>
</div>
{else}
<center><a href="{$BaseURL}user{$Config.webPageFileType}">{$User.info.firstname} {$User.info.lastname}</a></center>

<div>
<div class="button"><a href="{validate_url url=$SITEPATH url1='logout' url8=$Config.webPageFileType}">{$lang.user.logout}</a></div>
</div>
{/if}
